package com.sky.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 菜品+菜品口味分类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Dish  implements Serializable {

    private static final long serialVersionUID = 1L;

    private long total; //总记录数

    private List records; //当前页数据集合

    //菜品id
    private Long id;

    //菜品名称
    private String name;

    //菜品分类id   （ 在dish_flavor 表）
    private Long categoryId;

    //菜品价格
    private BigDecimal price;

    //图片
    private String image;

    //描述信息
    private String description;

    //0 停售 1 起售
    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Long createUser;

    private Long updateUser;

    private Integer makeTime;//  菜品制作时间

}
